/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __QS_DBIndexFile_H__
#define __QS_DBIndexFile_H__

#include "StockIndexImage.h"

namespace QSThink
{

	//should have two disk image file one is ShangHai
	//one is ShenZhen
	/*manipulate stock DB index file,Whole db only have one
	*/
	class DBIndexFile
	{

	public:
		DBIndexFile();

		//
		int persist(int symbol,const char* name,int nameLen);

		int getSymbolIndex(int symbol);

		std::string getStockName( int symbol );

	protected:
		StockIndexImage* _indexShangHai;
		StockIndexImage* _indexShenZhen;

	};
}

#endif
